package com.foreknow.demo10;

public class Dog extends Pet{

    public void catchFly() {
        System.out.println("玩飞盘......");
    }

    @Override
    public void toHospital() {
        this.setHealth(60);
        System.out.println("吃药、打针");
    }
}
